# Overview

This directory contains the analysis code used to generate tables and figures for the paper: "What Do Workplace Wellness Programs Do? Evidence from the Illinois Workplace Wellness Study" (Damon Jones, David Molitor, and Julian Reif).

The analysis cannot be run without the data used for the study. Please see the "Data" section below for more details.

# Data

The data used in the analysis includes personally identifiable information. To preserve the confidentiality of study participants, these data will not be shared publicly but will be made available to researchers at two physical data enclaves.

1. The Inter-University Consortium for Political and Social Research (ICPSR) in Ann Arbor, Michigan.

2. The National Bureau of Economic Research (NBER) in Cambridge, Massachusetts.

3. The authors will also release a downloadable public-use version of the data. These data will not allow for complete linking across different data sets but will allow for partial replication.

To request data access, please visit the study website: www.nber.org/workplacewellness

# Software Requirements

- Analyses run using Stata version 14 and R-3.4.4
- Install R-3.4.4 for Windows from https://cran.r-project.org/bin/windows/base/old/3.4.4/

# Instructions

To run the analysis, complete the following steps.

1. Define a global macro in Stata, `$Wellness_WhatDoesWWDo`, which points to the top of the project directory. This directory includes `README.txt` (this file) and `/data` and `/scripts` subfolders.

   For example:

   ```
   global Wellness_WhatDoesWWDo "C:/Users/jdoe/wellness"
   ```

2. Define a global macro in Stata, `RSCRIPT_PATH`, which points to your R executable file.

   For example:

   ```
   global RSCRIPT_PATH "C:/Program Files/R/R-3.4.4/bin/x64/Rscript.exe"
   ```

3. Store raw study data at `$Wellness_WhatDoesWWDo/data/raw`. 

4. Run the Stata script `_run_all.do`, located in the `$Wellness_WhatDoesWWDo/scripts` folder. This will call all other do-files and R code.

# Help

If there are any questions, you may contact the authors via the study website: www.nber.org/workplacewellness